Class | BeheerController
In: | app/controllers/beheer_controller.rb
Parent: | ApplicationController

### Methods

index login logout

### Public Instance methods

index()

[Source]

        # File app/controllers/beheer_controller.rb, line 21
    21:   def index
    22:     @aantal_orders = Order.count
    23:   end

login()

[Source]

        # File app/controllers/beheer_controller.rb, line 3
     3:   def login
     4:       session[:inlog_ok] = false
     5:       if request.post?
     6:           if params[:naam] == 'Super_user_ITMEDIA' && params[:paswoord] == 'BBB479+' then
     7:               session[:inlog_ok] = true
     8:               redirect_to :action => "index"
     9:           else
    10:                flash[:melding] = "Inloggegevens zijn foutief!"
    11:           end
    12:       end
    13:   end

logout()

[Source]

        # File app/controllers/beheer_controller.rb, line 15
    15:   def logout
    16:     session[:inlog_ok] = false
    17:     flash[:melding] = "U bent uitgelogd"
    18:     redirect_to :controller => :beheer, :action => :login
    19:   end

[Validate]